﻿using MagicWorld.DDD.Domain.Entity;

namespace MagicWorld.DDD.Domain.Service.DamagePolicy
{
    /// <summary>
    /// 伤害计算策略
    /// </summary>
    public interface IDamagePolicy
    {
        /// <summary>
        /// 计算伤害
        /// </summary>
        /// <param name="player"></param>
        /// <param name="weapon"></param>
        /// <param name="monster"></param>
        /// <returns></returns>
        long CalculateDamage(Player player, Weapon weapon, Monster monster);

        bool CanApply(Player player, Weapon weapon, Monster monster);
    }
}